//
//  jokeTableViewCell.m
//  A1.0
//
//  Created by lanou3g on 15-3-26.
//  Copyright (c) 2015年 ccandxx. All rights reserved.
//

#import "jokeTableViewCell.h"

@implementation jokeTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (CGFloat)cellFloatWithModel:(jokeModel *)model
{
    //label自适应
    CGRect rect = [model.title boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width - 20, 2000) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:17.0f]} context:nil];

    
    
    
    CGFloat h =  rect.size.height + 100;
    
    
    
    
    return h;

}

@end
